var times = 0;
function getstatus(){
    times += 1;
    scu = "安全登录器提醒您:";
    $.get('/index.php/Home/Login/getloginstatus',function(data){
        switch(data){
            case "OK":
                location.href = "/index.php";
                break;
            case "pwderror":
                alert(scu+"密码输入错误！");
                location.href = "/index.php/Home/Login";
                break;
            case "timeout":
            if(times <= 200){
                 getstatus();
            }else{
                alert(scu+"登录已超时，请稍后再试！");
                location.href = "/index.php/Home/Login";
            } 
            break;
        }
    });
}